
package com.js.data.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;


@Setter
@Getter
@TableName(value = "sys_log", autoResultMap = true)
public class SysLog {

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 描述
     */
    private String description;


    /**
     * 日志类型
     */
    private String logType;

    /**
     * 方法名
     */
    private String method;

    /**
     * 路径
     */
    private String url;

    /**
     * 参数
     */
    private String params;

    /**
     * 请求耗时
     */
    private Long time;

    /**
     * 操作用户
     */
    private String username;

    /**
     * 请求ip
     */
    private String requestIp;

    /**
     * 地址
     */
    private String address;

    /**
     * 浏览器
     */
    private String browser;

    protected LocalDateTime createTime;


    /**
     * 异常详细
     */
    private byte[] exceptionDetail;

    public SysLog() {
    }

    public SysLog(String logType, Long time) {
        this.logType = logType;
        this.time = time;
    }

}
